package cn.edu.scau.cmi.tancuier.client;

import cn.edu.scau.cmi.tancuier.interProgramming.GraduateStudent;
import cn.edu.scau.cmi.tancuier.interProgramming.Student;
import cn.edu.scau.cmi.tancuier.interProgramming.UndergraduateStudent;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.FlowPane;
import javafx.stage.Stage;

public class InterProgrammingClient extends Application{

	public static void main(String[] args) {
		Application.launch(args);
	}

	@Override
	public void start(Stage primaryStage) throws Exception {
		Student graduateStudent = new GraduateStudent();
		Student undergraduateStudent = new UndergraduateStudent();
		
		primaryStage.setTitle("InterProgramming");
		
		FlowPane flowPane = new FlowPane();
		flowPane.setPadding(new Insets(10, 20, 10, 20));
		flowPane.setHgap(5);
		flowPane.setVgap(5);
		
		Label a = new Label(graduateStudent.learning());
		flowPane.getChildren().add(a);
		Label b = new Label(undergraduateStudent.learning());
		flowPane.getChildren().add(b);
		
		Scene scene = new Scene(flowPane, 250, 250);
		primaryStage.setScene(scene);
		primaryStage.show();
	}

}
